﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kylin.Wiki.Model.Dto
{
    /// <summary>
    /// 分页查询参数
    /// </summary>
    public class BasePageDTO: BaseDTO
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页总条数
        /// </summary>
        public int PageSize { get; set; } = 20;

        /// <summary>
        /// 排序字段
        /// </summary>
        public string OrderBy { get; set; } = "asc";

        /// <summary>
        /// 排序方式
        /// </summary>
        public string Sort { get; set; } = "CreateOn";
    }
}
